package pers.archives.common.ov;

import lombok.Data;
import pers.archives.common.entity.User;

import java.io.Serializable;
import java.util.Date;

/*
 *@program:archives-parent
 *@author: 赵浩浩
 *@Time: 2020/9/23  20:48
 */
@Data
public class OVUser implements Serializable {

    private static final long serialVersionUID = -4645688352155680746L;

    private String userName;

    private String name;

    private Date createTime;

    private String token;
    /**
     * 传入实体类对象 进行赋值
     * @param user
     */
    public OVUser(User user) {
        this.userName = user.getUserName();
        this.name = user.getName();
        this.createTime = user.getCreateTime();
    }
}
